<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>定制包车_已响应</title>
		<link rel="stylesheet" href="${ctxStatic }/gov/css/govcustom.css" />
		<script type="text/javascript" src="${ctxStatic }/gov/js/jquery-1.8.3.min.js" ></script>
		<script type="text/javascript" src="${ctxStatic }/gov/js/gov.js" ></script>
	</head>
		<script>
		$(function() {
			change($('.coutom_col'), $('.col-wl-a'), 'cou-col-b');
		})
	</script>
	<body>
		<%@include file="../index/head.jsp" %>
		<div id="custom_a">
			 <div class="custom_f_main">
				<div class="custom-body">
					<div class="c_response">
						 <div class="resp_list clearfix">
						 	  <h5>需求详情：</h5>
						 	  <div class="resp_txt">
						 	  	  <p>
						 	  	  	<span>出发地：</span>
						 	  	  	<span>${tDemands.sendAddress}</span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	<span>到达地：</span>
						 	  	  	<span>${tDemands.destcity.cityname}</span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	<span>车型：</span>
						 	  	  	<span>${tDemands.cartype.typename}</span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	<span>用车时间：</span>
						 	  	  	<span><fmt:formatDate value="${tDemands.fromdate}" pattern="yyyy-MM-dd HH:mm"/></span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	<span>包车天数：</span>
						 	  	  	<span>${tDemands.rentdays}天</span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	<span>联系电话：</span>
						 	  	  	<span>${tDemands.contactphone}</span>
						 	  	  </p>
						 	  	  <p>
						 	  	  	  <span>行程备注：</span>
                                      <span>${tDemands.modeldesc}</span>
						 	  	  </p>
						 	  </div>
						 </div>
						 <c:if test="${not empty reactList}">
						 <div class="resp_list">
						 	 <h5>车队反馈信息：</h5>
						 	 <table cellpadding="0" cellspacing="0" class="c_resp_table">
						 	 	<tr>
						 	 		<th>名称</th>
						 	 		<th>总价</th>
						 	 		<th>车辆备注</th>
						 	 		<th>响应时间</th>
						 	 		<th>操作</th>
						 	 	</tr>
						 	 	<c:set var="genOrdername" value="${tDemands.departcity.sitename}-${tDemands.destcity.sitename}${tDemands.rentdays }日定制包车"/>
						 	 	<c:forEach items="${reactList}" var="DemandsReact">
						 	 	<tr>
						 	 		<td>${DemandsReact.office.name}</td>
						 	 		<td>${DemandsReact.price}</td>
                                    <td>${DemandsReact.remarks}</td> 
                                    <td><fmt:formatDate value="${DemandsReact.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
                                    <td class="resp_b_c">
                                    	<c:if test="${tDemands.reactstatus ne REACTSTATUS_DONE and tDemands.reactstatus ne REACTSTATUS_CANCEL  }">
											 <form action="${ctxGov}/submitCustomOrder" method="post">
											 <input type="hidden" name="departdateStr" value="<fmt:formatDate value="${tDemands.fromdate}" pattern="yyyy-MM-dd HH:mm:ss"/>">
											 <input type="hidden" name="typename" value="${tDemands.cartype.typename }">
											 <input type="hidden" name="cargotypeid" value="${tDemands.cartype.cargotypeid }">
											 <input type="hidden" name="outtimefee" value="${tDemands.cartype.outtimefee }">
											 <input type="hidden" name="reactid" value="${DemandsReact.reactid}">
											 <input type="hidden" name="demandid" value="${tDemands.demandid}">
											 <input type="hidden" name="ordername" value="${genOrdername }">
											 <input type="hidden" name="dueamount" value="${DemandsReact.price}">
											 <input type="hidden" name="ordertype" value="c">
											 <input type="hidden" name="bookingdays" value="${tDemands.rentdays }">
											 <input type="hidden" name="realscheid" value="${DemandsReact.reactid }">
											 <input type="hidden" name="vehiclenum" value="${tDemands.vehiclenum}">
											 <input type="hidden" name="contacts" value="${tDemands.contactor}">
											 <input type="hidden" name="payertel" value="${tDemands.contactphone}">
											 <input type="hidden" name="remarks" value="${tDemands.remarks }">
											 <input type="hidden" name="boardaddr" value="${tDemands.sendAddress }">
											 <input type="hidden" name="office.id" value="${DemandsReact.office.id }">
											 <input class="pay_overs" type="submit" value="确认支付">
											 </form>
										</c:if>
                                    </td>
						 	 	</tr>
						 	 	</c:forEach>
						 	 	
						 	 </table>
						 </div>
						 </c:if>
					</div>
			    </div>
			</div>
		</div>
		
		<%@include file="../index/foot.jsp" %>
	</body>
</html>
